home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-04
/
422mods.zip
/
TFC011.422
< prev
next >
Wrap
Text File
|
1993-03-09
|
4KB
|
110 lines
2TFC011.MOD 1Warn User of Off-line Files
The Flying Chicken [SysOp] #1 @12456
3Sunday, March 7, 1993 1 7:57 pm
TFC011.MOD - Warn User of Off-Line Files
Author: The Flying Chicken 1@12456 (WWIVLink) 1@2456 (WWIVNet) 1@2456 (IceNet)
Source: WWIV 4.20 thru 4.22
Version: 1.2
This is another one of those useless but useful mods that I
did. For some reason, people don't seem to understand what
-> FILE NOT THERE <- means, and will try to download the
file anyway. I got tired of seeing this, so I wrote this
mod. All it does is tell the user that the file they want
is in off-line storage, and will not let him (or her)
download.
v1.2 Upgrade for 4.22
v1.0 Initial version
Before using this or any mod, back up your source !!!!!
PKZIP source *.c *.h *.mak
1. Load up SR.C. Search for the send_file function, and
make the changes shown. 4.22 Note: the code has
changed a little bit in this function, but it really
doesn't affect how to make the changes. I have included
the 4.22 lines, with comments, to help you identify the
code in question.
void send_file(char *fn, int *sent, int *abort, char ft, char *sfn, int dn, lon
g fs)
{
int i,i1,ok;
double percent,t;
char s[81];
if (!(exist(fn))) { /* ADD */
i=0; /* ADD */
nl(); /* ADD */
npr("2Unable to download, file is in off-line storage\r\n"); /* ADD */0
nl(); /* ADD */
} else { /* ADD */
*sent=0; /* ONLY IN 4.22 CODE */
*abort=0; /* ONLY IN 4.22 CODE */
if (fs<0) {
i=get_protocol(xf_none);
} else {
if (dn==-1)
i=get_protocol(xf_down_temp);
else
i=get_protocol(xf_down);
}
} /* ADD */
ok=0;
percent=0.0;
if (check_batch_queue(sfn)) {
DISCLAIMER: I make no guarantees with this mod whatsoever.
Your installation of the mod is your acceptance of any
damages caused to your hardware or software, incendental or
otherwise.
The mod was tested with the versions of WWIV mentioned in
this file. If the mod does NOT work for you, e-mail one of
the addresses above, and tell me EXACTLY what you did, what
the screen said, and what you did to try to fix it, and I'll
do what I can to help you out.
PLEASE REPORT ANY BUGS TO ME AT THE ABOVE ADDRESS !!!!!!!
Any other comments, suggestions, hints, things I missed,
requests for new mods, and general "Thank you!"s are all VERY
welcomed, so drop me a line. I don't mind updates to this
mod, but do request that you send me a courtesy copy of the
changes you made.
*****************************************************************
Subscribe to:
Modding with WWIV's Flying Chicken
WWIVLink subtype 42456, Host @12456 (REQable)
WWIVNet subtype 42456, Host @2456 (REQable)
IceNet subtype 42456, Host @2456 (REQable)
All mods are released on this sub first. Occasionally, they
make the mods subs, but usually much later. Subscribe now!
*****************************************************************
The Flying Chicken
1@12456 (WWIVLink) - 1@2456 (WWIVNet) - 1@2456 (IceNet)
THE INSANE ASYLUM BBS
In Operation Since August, 1989
Running WWIV 4.22++ (Reg #21260)
SysOp: The Flying Chicken - CoSysOp: Dr. Doolittle
Snarfable - Auto-SysOp Validation
Callback Validation (Local calls only)
(214) 570-5950 - USR Dual Std (v32/HST)
--- END OF LINE ---
9
9 2[ 5The Insane Asylum 2]───[ 5WWIV Support 2]───[ 5USR Dual Std (300-14.4K) 2]0
8 2───[ 5214/817 WWIVLink AC 2]───[ 5214 WWIVNet AC 2]───[ 5REQ/SNARFable 2]───0